import request from '@/utils/request'
//获取产品分类列表
export function getProductCategoryList(params: any, id: number) {
    return request.post({
        url: `/productCategory/list?pageNo=${params.pageNo}&pageSize=${params.pageSize}&id=${id}`,
        params
    })
}

export function getParentList(id: number) {
    return request.get({ url: `/productCategory/getParentList/${id}` })
}

export function delParentList(id: number) {
    return request.get({ url: `/productCategory/remove/${id}` })
}

export function addParentList(params: any) {
    return request.post({ url: `/productCategory/save`, params })
}

export function updateParentList(params: any) {
    return request.post({ url: `/productCategory/update`, params })
}

export function getInfo(id: number) {
    return request.get({ url: `/productCategory/info/${id}` })
}
